<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/


Route::get('test', 'Home@test');


Route::post('guest/login', 'Guest@login');
Route::post('guest/reg', 'Guest@reg');



Route::prefix('user')
//    ->namespace('User')
    ->middleware('jwt.home')
    ->group(function () {
        Route::get('info', 'User@info');
    });
